# look at the function, but don't edit it
# when you are done, type submit() in
# the console below
add2sub5 <- function(x) {
x <- x + 2 # here we take x and add two to it, don't forget to assign it somewhere!
# (x is best since we want to keep it)
x - 5 # here we subtract 5 and since this is the last line it will be returned
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.